import 'package:flutter/widgets.dart';
import 'package:whale/pages/im/component/im_input_expression/index.dart';
import 'package:whale/pages/im/model/im.dart';
import 'package:whale/pages/im/model/im_list.dart';

class ImState {
  late ImListModel imListMd;
  List<ImModel>? list;
  int maxEmojiNameLength = 1;
  late ScrollController sc;

  initialization() {
    sc = ScrollController();
    for (var n in emojiNames) {
      if (n.length > maxEmojiNameLength) {
        maxEmojiNameLength = n.length;
      }
    }
  }

  dispose() {
    sc.dispose();
  }
}
